//
//  TourTableViewCell.h
//  EasyToTesco2.0
//
//  Created by knew on 2017/5/3.
//  Copyright © 2017年 EasyToTesco. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TourModel.h"
#import "TourViewLayout.h"


@interface TourOrderLastView : UIView

typedef void(^lastViewPayButton)();

@property (nonatomic,copy)lastViewPayButton lastViewPayButton;

@property (nonatomic,strong)UILabel *priceLabel;
@property (nonatomic,strong)UIButton *payOrderButton;

- (void)setTourOrderLastView:(TourOrderLastViewLayout *)lastViewLayout;
@end

@interface TourSellerOrderTableViewCell:UITableViewCell

typedef void(^LQQNumChange)();
typedef void(^ChooseDataButton)(UIButton *button);
typedef NS_ENUM(NSInteger,UITableViewCellConentViewStyle)  {
    UITableViewCellConentViewStyleDefault,
    UITableViewCellConentViewStyleData,
    UITableViewCellConentViewStyleCutAndAdd
};

@property (nonatomic,strong)UILabel *leftLabel;
@property (nonatomic,strong)UIButton *dataButton;
@property (nonatomic,strong)UIButton *cutButton;
@property (nonatomic,strong)UIButton *addButton;
@property (nonatomic,strong)UILabel *numberLabel;
@property (nonatomic,strong)UITextField *inputTextField;

@property (nonatomic,copy)LQQNumChange numAddBlock;
@property (nonatomic,copy)LQQNumChange numCutBlock;

@property (nonatomic,copy)ChooseDataButton chooseDataButton;

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier andTableViewCellConentViewStyle:(UITableViewCellConentViewStyle)UITableViewCellConentViewStyle;

- (void) setHeaderViewLayout:(TourSellOrderTableViewCellLayout *)SellOrderTableViewCellLayout andTableViewCellConentViewStyle:(UITableViewCellConentViewStyle)UITableViewCellConentViewStyle andLeftLabelString:(NSString *)leftString;

@end

#pragma mark -
@interface TourSellerDetailCellHeader : UIView

@property (nonatomic,strong)UIView *leftView;
@property (nonatomic,strong)UILabel *titleLabel;

- (void) setHeaderViewLayout:(TourSellerDetailCellHeaderLayout *)headerLayout;

@end

@protocol didClickSellerDetailPayButtonDelegate <NSObject>

- (void)didClickSellerDetailPayButton:(UIButton *)payButton;

@end


@interface TourSellerDetailCell : UITableViewCell

@property (nonatomic,strong)UILabel *titleLabel;
@property (nonatomic,strong)UIButton *infoButton;
@property (nonatomic,strong)UILabel *moreLabel;
@property (nonatomic,strong)UILabel *grayLabel;
@property (nonatomic,strong)UIView *lineView;
@property (nonatomic,strong)UILabel *priceLabel;
@property (nonatomic,strong)UIButton *PayButton;

@property (nonatomic,weak)id <didClickSellerDetailPayButtonDelegate> delegate;

- (void)setTourSellerDetailCellWithLayout:(TourDetailTableViewCellLayout *)cellLayout;

@end

@interface TourSellerDetailView : UIView

typedef void (^PhoneButtonBlock)();

@property (nonatomic,strong)UIImageView *leftImg;
@property (nonatomic,strong)UILabel *nameLabel;
@property (nonatomic,strong)UILabel *detailLabel;
@property (nonatomic,strong)UIButton *phoneButton;
@property (nonatomic,strong)UIButton *addressButton;

@property (nonatomic,copy)PhoneButtonBlock phoneButtonBlock;

- (void)setDetailHeaderViewWithModel:(TourDetailHeaderLayout *)detailModel;

@end

#pragma mark - 

@interface TourHeaderView : UIView

@property (nonatomic,strong)UISearchBar *searchTextField;

@end


@interface TourTableViewCell : UITableViewCell

@property (nonatomic,assign)CGFloat height;

@property (nonatomic,strong)UIImageView *leftImg;
@property (nonatomic,strong)UILabel *nameLabel;
@property (nonatomic,strong)UILabel *detailLabel;

- (void)setLayout:(TourViewLayout *)layout;

@end
